package Core;

import java.io.FileInputStream;
import java.util.Properties;

public class Config {
	public static int LOGIN_PORT;

	public Config() {
		System.out.println("Reading Configuration files.");
	}

	public static void load() {
		try {
			Properties Prop = new Properties();
			Prop.load(new FileInputStream("conf/loginserver.proprieties"));
			LOGIN_PORT = Integer.getInteger(Prop.getProperty("port", "4001"));
		} catch (Exception e) {
			System.err.println("Exception:" + e);
		}
	}
}
